<?php
namespace Core\CoreComponents\TchatsManager;

/**
* This interface provide all accessible methods on tchat module
*
* @method ServiceResponse addTchatMessage($message)
* @method ServiceResponse getTchatMessages()
* @method ServiceResponse deleteAllMessages()
*/
interface ITchats
{
	/**
	 * Add a tchat message
	 *
	 * @param string $message The tchat message
	 * @param User $user The sender (user id)
	 * 
	 * @return ServiceResponse This response contains the added tchat message
	 */
    public function addTchatMessage($message, $user);
	
	/**
	 * Get all tchat messages
	 * 
	 * @return ServiceResponse This response contains all tchat messages
	 */
	public function getTchatMessages();
	
	/**
	 * Delete all message from tchat
	 *
	 * @return ServiceResponse This response contains the deleted messages
	 */
	public function deleteAllMessages();
	
}

?> 